package Multithreading.Thread;

/**
 * ClassName:MyThread
 * Package:Multithreading.Thread
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/3/5-14:33
 * @Version:v1.0
 */
public class MyThread extends Thread{
    @Override
    public void run() {
        //书写线程要执行的代码
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+"Hello Word");
        }
    }
}
